name: astroimpact
base: core20
version: '1.0'
summary: Save the Martians!
description: |
  Play online with friends to save all the martians before their home planet is destoyed!
  
  Use W,A,S,D,Q,E,SPACE & LEFT SHIFT to move around.
  L-CTRL / Right Click to Brake.
  Escape / Left Click to free mouse focus.
  R = Toggle auto-tilt/roll around planet.
  F = FPS to console.

grade: stable
confinement: strict

architectures:
  - build-on: amd64
    run-on: amd64

apps:
  astroimpact:
    extensions: [gnome-3-38]
    command: astroimpact
    plugs:
    - desktop
    - desktop-legacy
    - gsettings
    - opengl
    - wayland
    - x11
    - network

parts:
  astroimpact:
    source: https://github.com/mrbid/astroimpact
    source-type: git
    plugin: make
    build-packages:
    - libglfw3-dev
    stage-packages:
    - libglfw3
    - libgles2